<?php

/**
 * Generated Model class.
 */
class Base_PostRow extends Db_Row
{

    /**
     * Set new value for post.id column in current Row.
     * 
     * @param int $IdFromPostRow
     * @return void
     */
    public function setId($Id)
    {
        $this->__set("id", $Id);
    }

    /**
     * Return post.id column value in current Row.
     * 
     * @return int
     */
    public function getId()
    {
        return $this->__get("id");
    }

    /**
     * Set new value for post.blog_id column in current Row.
     * 
     * @param int $BlogIdFromPostRow
     * @return void
     */
    public function setBlogId($BlogId)
    {
        $this->__set("blog_id", $BlogId);
    }

    /**
     * Return post.blog_id column value in current Row.
     * 
     * @return int
     */
    public function getBlogId()
    {
        return $this->__get("blog_id");
    }

    /**
     * Return parent row from table blog where post.blog_id = blog.id
     * 
     * @param Db_Select $selectFromBlog
     * @return BlogRow
     */
    public function getBlogRowByBlogId($select = null)
    {
        return $this->findParentRow('BlogPeer', null, $select);
    }

    /**
     * Set new value for post.text column in current Row.
     * 
     * @param text $TextFromPostRow
     * @return void
     */
    public function setText($Text)
    {
        $this->__set("text", $Text);
    }

    /**
     * Return post.text column value in current Row.
     * 
     * @return text
     */
    public function getText()
    {
        return $this->__get("text");
    }

    /**
     * Set new value for post.date column in current Row.
     * 
     * @param datetime $DateFromPostRow
     * @return void
     */
    public function setDate($Date)
    {
        $this->__set("date", $Date);
    }

    /**
     * Return post.date column value in current Row.
     * 
     * @return datetime
     */
    public function getDate()
    {
        return $this->__get("date");
    }

    /**
     * Set new value for post.name column in current Row.
     * 
     * @param varchar $NameFromPostRow
     * @return void
     */
    public function setName($Name)
    {
        $this->__set("name", $Name);
    }

    /**
     * Return post.name column value in current Row.
     * 
     * @return varchar
     */
    public function getName()
    {
        return $this->__get("name");
    }


}

